package com.seal.tsms.other.entity;

import com.seal.tsms.base.entity.BaseEntity;

import javax.persistence.*;

/**
 * Created by seal on 2016/3/20.
 */
@Entity
@Table(name="other_reply")
public class Reply extends BaseEntity{
    private String content;
    private String state;
    private Subject subject;
    private Token token;

    @Column(name = "reply_content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Column(name = "reply_state")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @ManyToOne
    @JoinColumn(name = "subject_id")
    public Subject getSubject() {
        return subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    @ManyToOne
    @JoinColumn(name = "token_id")
    public Token getToken() {
        return token;
    }

    public void setToken(Token token) {
        this.token = token;
    }
}
